#ifndef WINDOWMANAGER_H
#define WINDOWMANAGER_H

#include <QPushButton>
#include <QWidget>

class WindowManager : public QWidget
{
public:
    WindowManager(QWidget * mainWidget, QPushButton * home, QPushButton * back);
    static void addWidget(QWidget * widget);
    static void showWidget(QWidget * widget);
    static void goHome();
    static void goBack();
    static void goToNowPlaying();
    static QWidget * getCurrent();
    static void setHomeButton(QPushButton * button);
    static void setBackButton(QPushButton * button);
private:
    static QWidget * centralWidget;
    static QList<QWidget *> queue;
    static QPushButton * homeButton;
    static QPushButton * backButton;
};

#endif // WINDOWMANAGER_H
